﻿using System;
using System.Collections.Generic;
using System.Text;
using LibraryONTrack.Common;

namespace LibraryONTrack.dto
{
	public class Book: DTOBase
	{
		public long BookId { get; set; }
		public string Title { get; set; }

		public Book()
		{
			BookId = NullValues.NullLong;
			Title = NullValues.NullString;
		}

		public Book(string title)
		{
			BookId = NullValues.NullLong;
			Title = title;
		}

		public Book(long bookId, string title)
		{
			BookId = bookId;
			Title = title;
		}

		public override string ToString()
		{
			return String.Format("[Book: BookId={0}; Title={1}]", this.BookId, this.Title);
		}
	}
}
